package org.thingsboard.server.utils.issue;

public enum EventType {

    //网关上线事件
    GATEWAY_HEART("gateway-online","etype-status"),
    //边缘代理上线事件
    EVENT_STATUS("event-status","etype-status"),
    //边缘代理下线事件
    AGENT_STATUS("agent-status","etype-status"),
    //边缘代理心跳事件
    EVENT_HEART("event-heart","etype-status"),
    //人脸抓拍
    EVENT_FACE("event-snap_face","etype-data"),
    //设备告警
    EVENT_ALARM("event-alarm","etype-alarm"),
    //事件回调
    EVENT_RESPONSE("event-response","etype-response");



    private String eventCode;
    private String eventTypeStr;

    EventType(String eventCode,String eventTypeStr){
        this.eventCode = eventCode;
        this.eventTypeStr = eventTypeStr;
    }

    public String eventTypeVal(){
        return eventTypeStr;
    }

    public String eventCodeVal(){
        return eventCode;
    }
}
